/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.gwc.yy.liuxue.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 签证材料Entity
 * @author 黎俊涛
 * @version 2017-07-05
 */
public class Visa extends DataEntity<Visa> {
	
	private static final long serialVersionUID = 1L;
	private User student;		// student
	private String visaType;		// 签证类型
	private String country;		// country
	private String file;		// 附件
	private String fileName;
	private String [] file_label;
	

	public String[] getFile_label() {
		return file_label;
	}

	public void setFile_label(String[] file_label) {
		this.file_label = file_label;
	}

	public Visa() {
		super();
	}

	public Visa(String id){
		super(id);
	}

	@NotNull(message="student不能为空")
	public User getStudent() {
		return student;
	}

	public void setStudent(User student) {
		this.student = student;
	}
	
	@Length(min=0, max=512, message="签证类型长度必须介于 0 和 512 之间")
	public String getVisaType() {
		return visaType;
	}

	public void setVisaType(String visaType) {
		this.visaType = visaType;
	}
	
	@Length(min=0, max=512, message="country长度必须介于 0 和 512 之间")
	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
	
	@Length(min=0, max=500, message="附件长度必须介于 0 和 500 之间")
	public String getFile() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}
	@Length(min=2, max=100, message="文件名长度必须介于2 和 100 之间")
	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}